package com.test.agent;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.util.ClassUtils;

@Component
@Data
public class Config {

    public static String rootPath = ClassUtils.getDefaultClassLoader().getResource("").getPath().split("/config")[0];

    @Value("${MAX_THREADS}")
    private int maxThreads;

    @Value("${WEB_SERVER}")
    private String webServer;

    @Value("${JMETER_HOME}")
    private String jmeterHome;

    @Value("${GATLING_HOME}")
    private String gatlingHome;

    @Value("${BROKER_URL}")
    private String brokerUrl;
}
